package com.ruoyi.jiuyezu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuyezu.mapper.QuizResultsMapper;
import com.ruoyi.jiuyezu.domain.QuizResults;
import com.ruoyi.jiuyezu.service.IQuizResultsService;

/**
 * 抽背情况Service业务层处理
 * 
 * @author wyj
 * @date 2024-07-23
 */
@Service
public class QuizResultsServiceImpl implements IQuizResultsService 
{
    @Autowired
    private QuizResultsMapper quizResultsMapper;

    /**
     * 查询抽背情况
     * 
     * @param id 抽背情况主键
     * @return 抽背情况
     */
    @Override
    public QuizResults selectQuizResultsById(Long id)
    {
        return quizResultsMapper.selectQuizResultsById(id);
    }

    /**
     * 查询抽背情况列表
     * 
     * @param quizResults 抽背情况
     * @return 抽背情况
     */
    @Override
    public List<QuizResults> selectQuizResultsList(QuizResults quizResults)
    {
        return quizResultsMapper.selectQuizResultsList(quizResults);
    }

    /**
     * 新增抽背情况
     * 
     * @param quizResults 抽背情况
     * @return 结果
     */
    @Override
    public int insertQuizResults(QuizResults quizResults)
    {
        return quizResultsMapper.insertQuizResults(quizResults);
    }

    /**
     * 修改抽背情况
     * 
     * @param quizResults 抽背情况
     * @return 结果
     */
    @Override
    public int updateQuizResults(QuizResults quizResults)
    {
        return quizResultsMapper.updateQuizResults(quizResults);
    }

    /**
     * 批量删除抽背情况
     * 
     * @param ids 需要删除的抽背情况主键
     * @return 结果
     */
    @Override
    public int deleteQuizResultsByIds(Long[] ids)
    {
        return quizResultsMapper.deleteQuizResultsByIds(ids);
    }

    /**
     * 删除抽背情况信息
     * 
     * @param id 抽背情况主键
     * @return 结果
     */
    @Override
    public int deleteQuizResultsById(Long id)
    {
        return quizResultsMapper.deleteQuizResultsById(id);
    }
}
